package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.ProductQueryObject;

import java.math.BigDecimal;
import java.util.List;

public interface IProductService {

    Product selectByPrimaryKey(Long id);

    PageResult query(ProductQueryObject qo);

    void saveOrUpdate(Product product);
    void delete(Long id);
    List<Product> selectAll();
    int selectByCount();

    BigDecimal selectByAvg();

    List<Product> selectExportData(ProductQueryObject qo);
}
